home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 8777 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  947 b 

  1. Path: news.rain.org!usenet
  2. From: "Guus Leeuw jr." <guusl@eiffel.com>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Template Troubles
  5. Date: Mon, 26 Feb 1996 09:04:00 -0800
  6. Organization: Interactive Software Engineering Inc. http://www.eiffel.com/
  7. Message-ID: <3131E800.7730049@eiffel.com>
  8. References: <4grbtb$nog@aimnet.aimnet.com>
  9. NNTP-Posting-Host: @outback.eiffel.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0 (X11; I; Linux 1.2.8 i586)
  14.  
  15. Kris Bosland wrote:
  16. [snip snip]
  17. > test.cc:
  18. > ----------------------------------------------------------------
  19. > template <class data_t> class List {
  20. >   public:
  21. >     data_t data;
  22. > }
  23. > void main( int argc, char **argv )
  24. > {
  25. >   List<char *> string_list;
  26. > }
  27. [snip snip]
  28.  
  29. Well, you're just missing a `;' after your class definition. After inserting that one
  30. in line 4, it compiles fine with my g++ 2.6.3.
  31.  
  32. Hope this helps,
  33.     Guus
  34.